38 references to _options
Aspire.Hosting.Azure (38)
Provisioning\Internal\BaseProvisioningContextProvider.cs (11)
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; 123_options.AllowResourceGroupCreation = true; 130var location = new AzureLocation(_options.Location); 161azureSection["Location"] = _options.Location; 162azureSection["SubscriptionId"] = _options.SubscriptionId; 164if (_options.AllowResourceGroupCreation.HasValue) 166azureSection["AllowResourceGroupCreation"] = _options.AllowResourceGroupCreation.Value;
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (17)
46if (!string.IsNullOrWhiteSpace(_options.ResourceGroupPrefix)) 48prefix = _options.ResourceGroupPrefix; 80while (_options.Location == null || _options.SubscriptionId == null) 82if (_options.SubscriptionId == null) 85if (_options.SubscriptionId == null) 91if (_options.Location == null) 94if (_options.Location == null) 180_options.SubscriptionId = result.Data[SubscriptionIdName].Value; 215_options.SubscriptionId = manualResult.Data[SubscriptionIdName].Value; 240var availableLocations = await armClient.GetAvailableLocationsAsync(_options.SubscriptionId!, cancellationToken).ConfigureAwait(false); 313_options.Location = result.Data[LocationName].Value; 314_options.ResourceGroup = result.Data[ResourceGroupName].Value; 315_options.AllowResourceGroupCreation = true; 364_options.Location = manualResult.Data[LocationName].Value; 365_options.ResourceGroup = manualResult.Data[ResourceGroupName].Value; 366_options.AllowResourceGroupCreation = true;
Provisioning\Internal\RunModeProvisioningContextProvider.cs (10)
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.