36 references to _options
Aspire.Hosting.Azure (36)
Provisioning\Internal\BaseProvisioningContextProvider.cs (6)
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
var location = new AzureLocation(
_options
.Location);
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (17)
43
if (!string.IsNullOrWhiteSpace(
_options
.ResourceGroupPrefix))
45
prefix =
_options
.ResourceGroupPrefix;
77
while (
_options
.Location == null ||
_options
.SubscriptionId == null)
79
if (
_options
.SubscriptionId == null)
82
if (
_options
.SubscriptionId == null)
88
if (
_options
.Location == null)
91
if (
_options
.Location == null)
138
_options
.SubscriptionId = result.Data[SubscriptionIdName].Value;
179
_options
.SubscriptionId = manualResult.Data[SubscriptionIdName].Value;
190
var 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)
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.
172
azureSection["Location"] =
_options
.Location;
173
azureSection["SubscriptionId"] =
_options
.SubscriptionId;
174
azureSection["ResourceGroup"] =
_options
.ResourceGroup;