36 references to _options
Aspire.Hosting.Azure (36)
Provisioning\Internal\BaseProvisioningContextProvider.cs (6)
77var subscriptionId = _options.SubscriptionId ?? throw new MissingConfigurationException("An Azure subscription id is required. Set the Azure:SubscriptionId configuration value."); 95if (string.IsNullOrEmpty(_options.Location)) 103if (string.IsNullOrEmpty(_options.ResourceGroup)) 115resourceGroupName = _options.ResourceGroup; 116createIfAbsent = _options.AllowResourceGroupCreation ?? false; 123var location = new AzureLocation(_options.Location);
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (17)
43if (!string.IsNullOrWhiteSpace(_options.ResourceGroupPrefix)) 45prefix = _options.ResourceGroupPrefix; 77while (_options.Location == null || _options.SubscriptionId == null) 79if (_options.SubscriptionId == null) 82if (_options.SubscriptionId == null) 88if (_options.Location == null) 91if (_options.Location == null) 138_options.SubscriptionId = result.Data[SubscriptionIdName].Value; 179_options.SubscriptionId = manualResult.Data[SubscriptionIdName].Value; 190var availableLocations = await armClient.GetAvailableLocationsAsync(_options.SubscriptionId!, cancellationToken).ConfigureAwait(false); 237_options.Location = result.Data[LocationName].Value; 238_options.ResourceGroup = result.Data[ResourceGroupName].Value; 239_options.AllowResourceGroupCreation = true; 294_options.Location = manualResult.Data[LocationName].Value; 295_options.ResourceGroup = manualResult.Data[ResourceGroupName].Value; 296_options.AllowResourceGroupCreation = true;
Provisioning\Internal\RunModeProvisioningContextProvider.cs (13)
45if (!string.IsNullOrWhiteSpace(_options.ResourceGroupPrefix)) 47prefix = _options.ResourceGroupPrefix; 67(!string.IsNullOrEmpty(_options.Location) && !string.IsNullOrEmpty(_options.SubscriptionId))) 110while (_options.Location == null || _options.SubscriptionId == null) 164_options.Location = result.Data[LocationName].Value; 165_options.SubscriptionId = result.Data[SubscriptionIdName].Value; 166_options.ResourceGroup = result.Data[ResourceGroupName].Value; 167_options.AllowResourceGroupCreation = true; // Allow the creation of the resource group if it does not exist. 172azureSection["Location"] = _options.Location; 173azureSection["SubscriptionId"] = _options.SubscriptionId; 174azureSection["ResourceGroup"] = _options.ResourceGroup;