19 references to _options
Aspire.Hosting.Azure (19)
Provisioning\Internal\DefaultProvisioningContextProvider.cs (19)
40(!string.IsNullOrEmpty(_options.Location) && !string.IsNullOrEmpty(_options.SubscriptionId))) 74while (_options.Location == null || _options.SubscriptionId == null) 132_options.Location = result.Data?[0].Value; 133_options.SubscriptionId = result.Data?[1].Value; 134_options.ResourceGroup = result.Data?[2].Value; 135_options.AllowResourceGroupCreation = true; // Allow the creation of the resource group if it does not exist. 140azureSection["Location"] = _options.Location; 141azureSection["SubscriptionId"] = _options.SubscriptionId; 142azureSection["ResourceGroup"] = _options.ResourceGroup; 188var subscriptionId = _options.SubscriptionId ?? throw new MissingConfigurationException("An Azure subscription id is required. Set the Azure:SubscriptionId configuration value."); 206if (string.IsNullOrEmpty(_options.Location)) 214if (string.IsNullOrEmpty(_options.ResourceGroup)) 226resourceGroupName = _options.ResourceGroup; 227createIfAbsent = _options.AllowResourceGroupCreation ?? false; 234var location = new AzureLocation(_options.Location); 278if (!string.IsNullOrWhiteSpace(_options.ResourceGroupPrefix)) 280prefix = _options.ResourceGroupPrefix;