19 references to _options
Aspire.Hosting.Azure (19)
Provisioning\Internal\DefaultProvisioningContextProvider.cs (19)
39
(!string.IsNullOrEmpty(
_options
.Location) && !string.IsNullOrEmpty(
_options
.SubscriptionId)))
73
while (
_options
.Location == null ||
_options
.SubscriptionId == null)
131
_options
.Location = result.Data?[0].Value;
132
_options
.SubscriptionId = result.Data?[1].Value;
133
_options
.ResourceGroup = result.Data?[2].Value;
134
_options
.AllowResourceGroupCreation = true; // Allow the creation of the resource group if it does not exist.
139
azureSection["Location"] =
_options
.Location;
140
azureSection["SubscriptionId"] =
_options
.SubscriptionId;
141
azureSection["ResourceGroup"] =
_options
.ResourceGroup;
187
var subscriptionId =
_options
.SubscriptionId ?? throw new MissingConfigurationException("An Azure subscription id is required. Set the Azure:SubscriptionId configuration value.");
205
if (string.IsNullOrEmpty(
_options
.Location))
213
if (string.IsNullOrEmpty(
_options
.ResourceGroup))
225
resourceGroupName =
_options
.ResourceGroup;
226
createIfAbsent =
_options
.AllowResourceGroupCreation ?? false;
233
var location = new AzureLocation(
_options
.Location);
277
if (!string.IsNullOrWhiteSpace(
_options
.ResourceGroupPrefix))
279
prefix =
_options
.ResourceGroupPrefix;