38 references to _options
Aspire.Hosting.Azure (38)
Provisioning\Internal\BaseProvisioningContextProvider.cs (11)
77
var subscriptionId =
_options
.SubscriptionId ?? throw new MissingConfigurationException("An Azure subscription id is required. Set the Azure:SubscriptionId configuration value.");
95
if (string.IsNullOrEmpty(
_options
.Location))
103
if (string.IsNullOrEmpty(
_options
.ResourceGroup))
115
resourceGroupName =
_options
.ResourceGroup;
116
createIfAbsent =
_options
.AllowResourceGroupCreation ?? false;
123
_options
.AllowResourceGroupCreation = true;
130
var location = new AzureLocation(
_options
.Location);
161
azureSection["Location"] =
_options
.Location;
162
azureSection["SubscriptionId"] =
_options
.SubscriptionId;
164
if (
_options
.AllowResourceGroupCreation.HasValue)
166
azureSection["AllowResourceGroupCreation"] =
_options
.AllowResourceGroupCreation.Value;
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (17)
46
if (!string.IsNullOrWhiteSpace(
_options
.ResourceGroupPrefix))
48
prefix =
_options
.ResourceGroupPrefix;
80
while (
_options
.Location == null ||
_options
.SubscriptionId == null)
82
if (
_options
.SubscriptionId == null)
85
if (
_options
.SubscriptionId == null)
91
if (
_options
.Location == null)
94
if (
_options
.Location == null)
180
_options
.SubscriptionId = result.Data[SubscriptionIdName].Value;
215
_options
.SubscriptionId = manualResult.Data[SubscriptionIdName].Value;
240
var 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)
45
if (!string.IsNullOrWhiteSpace(
_options
.ResourceGroupPrefix))
47
prefix =
_options
.ResourceGroupPrefix;
67
(!string.IsNullOrEmpty(
_options
.Location) && !string.IsNullOrEmpty(
_options
.SubscriptionId)))
110
while (
_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.