You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When no `+output.WithBackticks("--service") +` value is specified, all services in the `+output.WithBackticks("azure.yaml") +` file (found in the root of your project) are deployed.
local.StringVar(&d.serviceName, "service", "", "Deploys a specific service (when the string is unspecified, all services that are listed in the "+azdcontext.ProjectFileName+" file are deployed).")
66
+
local.StringVar(
67
+
&d.serviceName,
68
+
"service",
69
+
"",
70
+
"Deploys a specific service (when the string is unspecified, "+
71
+
"all services that are listed in the "+azdcontext.ProjectFileName+" file are deployed).",
With this command group, you can create a new environment or get, set, and list your application environments. An application can have multiple environments (for example, dev, test, prod), each with a different configuration (that is, connectivity information) for accessing Azure resources.
Copy file name to clipboardExpand all lines: cli/azd/cmd/infra_delete.go
+13-2Lines changed: 13 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -39,10 +39,21 @@ func (a *infraDeleteAction) SetupFlags(
39
39
local*pflag.FlagSet,
40
40
) {
41
41
local.BoolVar(&a.forceDelete, "force", false, "Does not require confirmation before it deletes resources.")
42
-
local.BoolVar(&a.purgeDelete, "purge", false, "Does not require confirmation before it permanently deletes resources that are soft-deleted by default (for example, key vaults).")
42
+
local.BoolVar(
43
+
&a.purgeDelete,
44
+
"purge",
45
+
false,
46
+
"Does not require confirmation before it permanently deletes resources that are"+
47
+
" soft-deleted by default (for example, key vaults).",
When no template is supplied, you can optionally select an Azure Developer CLI template for cloning. Otherwise, `+output.WithBackticks("azd init") +` initializes the current directory and creates resources so that your project is compatible with Azure Developer CLI.
@@ -62,9 +63,21 @@ func (i *initAction) SetupFlags(
62
63
persis*pflag.FlagSet,
63
64
local*pflag.FlagSet,
64
65
) {
65
-
local.StringVarP(&i.template.Name, "template", "t", "", "The template to use when you initialize the project. You can use Full URI, <owner>/<repository>, or <repository> if it's part of the azure-samples organization.")
66
+
local.StringVarP(
67
+
&i.template.Name,
68
+
"template",
69
+
"t",
70
+
"",
71
+
"The template to use when you initialize the project. "+
72
+
"You can use Full URI, <owner>/<repository>, or <repository> if it's part of the azure-samples organization.",
73
+
)
66
74
local.StringVarP(&i.templateBranch, "branch", "b", "", "The template branch to initialize from.")
67
-
local.StringVar(&i.subscription, "subscription", "", "Name or ID of an Azure subscription to use for the new environment")
75
+
local.StringVar(
76
+
&i.subscription,
77
+
"subscription",
78
+
"",
79
+
"Name or ID of an Azure subscription to use for the new environment",
80
+
)
68
81
local.StringVarP(&i.location, "location", "l", "", "Azure location for the new environment")
persis.BoolVar(&m.monitorLive, "live", false, "Open a browser to Application Insights Live Metrics. Live Metrics is currently not supported for Python applications.")
56
+
persis.BoolVar(
57
+
&m.monitorLive,
58
+
"live",
59
+
false,
60
+
"Open a browser to Application Insights Live Metrics. Live Metrics is currently not supported for Python applications.",
61
+
)
57
62
persis.BoolVar(&m.monitorLogs, "logs", false, "Open a browser to Application Insights Logs.")
58
63
persis.BoolVar(&m.monitorOverview, "overview", false, "Open a browser to Application Insights Overview Dashboard.")
The Azure Developer CLI template includes a GitHub Actions pipeline configuration file (in the *.github/workflows* folder) that deploys your application whenever code is pushed to the main branch.
local.StringVar(&p.manager.PipelineServicePrincipalName, "principal-name", "", "The name of the service principal to use to grant access to Azure resources as part of the pipeline.")
69
-
local.StringVar(&p.manager.PipelineRemoteName, "remote-name", "origin", "The name of the git remote to configure the pipeline to run on.")
70
-
local.StringVar(&p.manager.PipelineRoleName, "principal-role", "Contributor", "The role to assign to the service principal.")
69
+
local.StringVar(
70
+
&p.manager.PipelineServicePrincipalName,
71
+
"principal-name",
72
+
"",
73
+
"The name of the service principal to use to grant access to Azure resources as part of the pipeline.",
74
+
)
75
+
local.StringVar(
76
+
&p.manager.PipelineRemoteName,
77
+
"remote-name",
78
+
"origin",
79
+
"The name of the git remote to configure the pipeline to run on.",
80
+
)
81
+
local.StringVar(
82
+
&p.manager.PipelineRoleName,
83
+
"principal-role",
84
+
"Contributor",
85
+
"The role to assign to the service principal.",
86
+
)
71
87
local.StringVar(&p.manager.PipelineProvider, "provider", "", "The pipeline provider to use (GitHub and Azdo supported).")
0 commit comments