Create Pull Request
| Date | Scan | Status | Result |
|---|---|---|---|
| 2025-07-12 23:44 | #41 | cancelled |
Biased
|
| 2025-07-12 00:58 | #8 | cancelled |
Clean
|
| 2025-07-10 05:06 | #7 | processing |
Clean
|
$DEVCID = az devcenter admin devcenter show -n <devcenterName> --query id -o tsv
Write-Output $DEVCID
az devcenter admin project create -n <projectName> `
--description "My first project." `
--dev-center-id $DEVCID
$SUBID = az account show --name <subscriptionName> --query id -o tsv
Write-Output $SUBID
$OID = az ad sp list --display-name <devcenterName> --query [].id -o tsv
Write-Output $OID
az role assignment create --assignee $OID `
--role "Owner" `
--scope "/subscriptions/$SUBID"
az role assignment create --assignee $MYOID `
--role "Deployment Environments User" `
--scope "/subscriptions/$SUBID"
# Remove the group default scope for next the command.
az configure --defaults group=
$ROID = az role definition list -n "Owner" --scope /subscriptions/$SUBID --query [].name -o tsv
Write-Output $ROID
# Set the default resource group again.
az configure --defaults group=<resourceGroupName>
$roles = "{`"$($ROID)`":{}}"
az devcenter admin project-environment-type create `
-n <availableEnvironmentType> `
--project <projectName> `
--identity-type "SystemAssigned" `
--roles $roles `
--deployment-target-id "/subscriptions/$SUBID" `
--status Enabled
$MYOID = az ad signed-in-user show --query id -o tsv
Write-Output $MYOID
az role assignment create --assignee $MYOID `
--role "DevCenter Project Admin" `
--scope "/subscriptions/$SUBID"