hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.51k stars 4.6k forks source link

Azure resource provider Github.Network not available #25946

Closed RSM-THU closed 2 months ago

RSM-THU commented 3 months ago

Is there an existing issue for this?

Community Note

Terraform Version

1.6.6

AzureRM Provider Version

3.103.1

Affected Resource(s)/Data Source(s)

azurerm_resource_provider_registration

Terraform Configuration Files

resource "azurerm_resource_provider_registration" "github" {
  name = "Github.Network"
}

Debug Output/Panic Output

Planning failed. Terraform encountered an error while generating this plan.

╷
│ Error: "Github.Network" was not found in the list of supported Resource Providers: "Microsoft.Cdn, Microsoft.Management, Microsoft.TimeSeriesInsights, Microsoft.Blueprint, Microsoft.RecoveryServices, Microsoft.PowerBIDedicated, Microsoft.ManagedIdentity, Microsoft.CustomProviders, Microsoft.EventHub, Microsoft.DataLakeAnalytics, Microsoft.DBforMariaDB, Microsoft.DataLakeStore, Microsoft.BotService, Microsoft.PolicyInsights, Microsoft.Devices, Microsoft.OperationsManagement, Microsoft.KeyVault, Microsoft.Databricks, Microsoft.DevTestLab, Microsoft.CognitiveServices, Microsoft.OperationalInsights, Microsoft.StreamAnalytics, Microsoft.Security, Microsoft.AppPlatform, Microsoft.ServiceFabricMesh, Microsoft.Logic, Microsoft.Search, Microsoft.Maps, Microsoft.Maintenance, Microsoft.GuestConfiguration, Microsoft.DesktopVirtualization, Microsoft.HealthcareApis, Microsoft.ManagedServices, Microsoft.NotificationHubs, Microsoft.DataMigration, Microsoft.MixedReality, Microsoft.Relay, Microsoft.Automation, Microsoft.SecurityInsights, Microsoft.EventGrid, Microsoft.ServiceBus, Microsoft.DataProtection, Microsoft.ContainerService, Microsoft.ContainerRegistry, Microsoft.Media, Microsoft.DocumentDB, Microsoft.ServiceFabric, microsoft.insights, Microsoft.MachineLearningServices, Microsoft.HDInsight, Microsoft.DBforMySQL, Microsoft.ApiManagement, Microsoft.ContainerInstance, Microsoft.Storage, Microsoft.AVS, Microsoft.Kusto, Microsoft.Cache, Microsoft.DBforPostgreSQL, Microsoft.Compute, Microsoft.Web, Microsoft.Network, Microsoft.Sql, Microsoft.MarketplaceNotifications, Microsoft.Advisor, Microsoft.ResourceHealth, Microsoft.ChangeAnalysis, Astronomer.Astro, Dynatrace.Observability, GitHub.Network, Informatica.DataManagement, Microsoft.AAD, Microsoft.AadCustomSecurityAttributesDiagnosticSettings, microsoft.aadiam, Microsoft.Addons, Microsoft.ADHybridHealthService, Microsoft.AgFoodPlatform, Microsoft.AlertsManagement, Microsoft.AnalysisServices, Microsoft.AnyBuild, Microsoft.ApiCenter, Microsoft.ApiSecurity, Microsoft.App, Microsoft.AppAssessment, Microsoft.AppComplianceAutomation, Microsoft.AppConfiguration, Microsoft.AppSecurity, Microsoft.ArcNetworking, Microsoft.Attestation, Microsoft.Authorization, Microsoft.Automanage, Microsoft.AutonomousDevelopmentPlatform, Microsoft.AwsConnector, Microsoft.AzureActiveDirectory, Microsoft.AzureArcData, Microsoft.AzureDataTransfer, Microsoft.AzureFleet, Microsoft.AzureLargeInstance, Microsoft.AzurePlaywrightService, Microsoft.AzureScan, Microsoft.AzureSphere, Microsoft.AzureStack, Microsoft.AzureStackHCI, Microsoft.BackupSolutions, Microsoft.BareMetal, Microsoft.BareMetalInfrastructure, Microsoft.Batch, Microsoft.Billing, Microsoft.BillingBenefits, Microsoft.Bing, Microsoft.BlockchainTokens, Microsoft.Capacity, Microsoft.Carbon, Microsoft.CertificateRegistration, Microsoft.Certify, Microsoft.Chaos, Microsoft.ClassicCompute, Microsoft.ClassicInfrastructureMigrate, Microsoft.ClassicNetwork, Microsoft.ClassicStorage, Microsoft.ClassicSubscription, Microsoft.CleanRoom, Microsoft.CloudHealth, Microsoft.CloudShell, Microsoft.CloudTest, Microsoft.CodeSigning, Microsoft.Commerce, Microsoft.Communication, Microsoft.Community, Microsoft.ComputeSchedule, Microsoft.ConfidentialLedger, Microsoft.Confluent, Microsoft.ConnectedCache, Microsoft.ConnectedCredentials, microsoft.connectedopenstack, Microsoft.ConnectedVehicle, Microsoft.ConnectedVMwarevSphere, Microsoft.Consumption, Microsoft.CostManagement, Microsoft.CostManagementExports, Microsoft.CustomerLockbox, Microsoft.D365CustomerInsights, Microsoft.Dashboard, Microsoft.DatabaseWatcher, Microsoft.DataBox, Microsoft.DataBoxEdge, Microsoft.DataCatalog, Microsoft.Datadog, Microsoft.DataFactory, Microsoft.DataReplication, Microsoft.DataShare, Microsoft.DelegatedNetwork, Microsoft.DevAI, Microsoft.DevCenter, Microsoft.DevHub, Microsoft.DeviceRegistry, Microsoft.DeviceUpdate, Microsoft.DevOpsInfrastructure, Microsoft.DigitalTwins, Microsoft.DomainRegistration, Microsoft.Easm, Microsoft.Edge, Microsoft.EdgeManagement, Microsoft.EdgeMarketplace, Microsoft.EdgeOrder, Microsoft.EdgeOrderPartner, Microsoft.Elastic, Microsoft.ElasticSan, Microsoft.EnterpriseSupport, Microsoft.EntitlementManagement, Microsoft.Experimentation, Microsoft.ExtendedLocation, Microsoft.Fabric, Microsoft.Falcon, Microsoft.Features, Microsoft.FluidRelay, Microsoft.GraphServices, Microsoft.HanaOnAzure, Microsoft.HardwareSecurityModules, Microsoft.HealthBot, Microsoft.HealthDataAIServices, Microsoft.HealthModel, Microsoft.Help, Microsoft.HybridCloud, Microsoft.HybridCompute, Microsoft.HybridConnectivity, Microsoft.HybridContainerService, Microsoft.HybridNetwork, Microsoft.Impact, Microsoft.IntegrationSpaces, Microsoft.Inventory, Microsoft.IoTCentral, Microsoft.IoTFirmwareDefense, Microsoft.IoTOperationsDataProcessor, Microsoft.IoTOperationsMQ, Microsoft.IoTOperationsOrchestrator, Microsoft.IoTSecurity, Microsoft.Kubernetes, Microsoft.KubernetesConfiguration, Microsoft.KubernetesRuntime, Microsoft.LabServices, Microsoft.LoadTestService, Microsoft.Logz, Microsoft.MachineLearning, Microsoft.ManagedNetworkFabric, Microsoft.ManufacturingPlatform, Microsoft.Marketplace, Microsoft.MarketplaceOrdering, Microsoft.MessagingCatalog, Microsoft.MessagingConnectors, Microsoft.Migrate, Microsoft.Mission, Microsoft.MobileNetwork, Microsoft.MobilePacketCore, Microsoft.ModSimWorkbench, Microsoft.Monitor, Microsoft.MySQLDiscovery, Microsoft.NetApp, Microsoft.NetworkAnalytics, Microsoft.NetworkCloud, Microsoft.NetworkFunction, Microsoft.NexusIdentity, Microsoft.Nutanix, Microsoft.ObjectStore, Microsoft.OffAzure, Microsoft.OffAzureSpringBoot, Microsoft.OpenEnergyPlatform, Microsoft.OperatorVoicemail, Microsoft.OracleDiscovery, Microsoft.Orbital, Microsoft.PartnerManagedConsumerRecurrence, Microsoft.Peering, Microsoft.Pki, Microsoft.Portal, Microsoft.PowerBI, Microsoft.PowerPlatform, Microsoft.ProfessionalService, Microsoft.ProgrammableConnectivity, Microsoft.ProviderHub, Microsoft.Purview, Microsoft.Quantum, Microsoft.Quota, Microsoft.RecommendationsService, Microsoft.RedHatOpenShift, Microsoft.ResourceConnector, Microsoft.ResourceGraph, Microsoft.ResourceNotifications, Microsoft.Resources, Microsoft.SaaS, Microsoft.SaaSHub, Microsoft.Scom, Microsoft.ScVmm, Microsoft.SecurityCopilot, Microsoft.SecurityDetonation, Microsoft.SecurityDevOps, Microsoft.SerialConsole, Microsoft.ServiceLinker, Microsoft.ServiceNetworking, Microsoft.ServicesHub, Microsoft.SignalRService, Microsoft.Singularity, Microsoft.SoftwarePlan, Microsoft.Solutions, Microsoft.Sovereign, Microsoft.SqlVirtualMachine, Microsoft.StandbyPool, Microsoft.StorageActions, Microsoft.StorageCache, Microsoft.StorageMover, Microsoft.StorageSync, Microsoft.StorageTasks, Microsoft.Subscription, microsoft.support, Microsoft.Synapse, Microsoft.Syntex, Microsoft.TestBase, Microsoft.UsageBilling, Microsoft.VideoIndexer, Microsoft.VirtualMachineImages, microsoft.visualstudio, Microsoft.VMware, Microsoft.VoiceServices, Microsoft.VSOnline, Microsoft.WindowsPushNotificationServices, Microsoft.WorkloadBuilder, Microsoft.Workloads, NewRelic.Observability, NGINX.NGINXPLUS, Oracle.Database, PaloAltoNetworks.Cloudngfw, Qumulo.Storage, SolarWinds.Observability, SplitIO.Experimentation, Wandisco.Fusion"
│
│   with azurerm_resource_provider_registration.github,
│   on main.tf line 30, in resource "azurerm_resource_provider_registration" "github":
│   30:   name = "Github.Network"
│
╵

Expected Behaviour

The resource provider "Github.Network" should be installed

Actual Behaviour

I receive an error stating that this is not a support resource provider.

I guess that this is due to this resource provider being newly released (2024-04-02).

Steps to Reproduce

No response

Important Factoids

No response

References

No response

sdora05 commented 3 months ago

👍

manicminer commented 2 months ago

@RSM-THU Thanks for reporting this. Validation for resource providers is done by querying the available resource providers from the Resource Manager API when the AzureRM provider is initialized. I checked and it looks like this API is now including the Github.Network RP in its response, so I believe this should now be resolved.

In the event that a resource provider is not yet published by Microsoft, you can set the ARM_PROVIDER_ENHANCED_VALIDATION=false environment variable to disable this validation. There is no direct provider property for this setting as this is a workaround and not a recommended solution in the longer term - we recommend you only use this as necessary until the Resource Manager API has been updated accordingly.

Since it looks like this should now be working for you, I'm going to close this issue for now, but if you are still experiencing this validation error, please let us know and I'll reopen it for further investigation. Thanks!

github-actions[bot] commented 1 month ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.