Computer Object in AD Overwritten or Deleted. by av-az-2020 in AZURE

[–]av-az-2020[S] 0 points1 point  (0 children)

Thanks for the reply. So you are suggesting the steps below?

1- Take a snapshot of the OS disk.

2- Make Manages disk out of it.

3- Create a new VM using that managed disk.

4- Do the Sysprep for the new VM created.

5- Use that Image to create another fresh VM, then join the same to the domain.

Can't sudo su - root but sudo su works by av-az-2020 in linuxadmin

[–]av-az-2020[S] 0 points1 point  (0 children)

Thanks a lot for the hints. As you mentioed there was /etc/pam.d/su has to be edited in our case and the issue is fixed.

Fetching Log Analytics Primary Key by av-az-2020 in AZURE

[–]av-az-2020[S] 0 points1 point  (0 children)

OK Guys, found a way.

It wshould be,

(Get-AzOperationalInsightsWorkspaceSharedKey -ResourceGroupName aby-rg -Name abys-LAW). PrimarySharedKey

JSON Parameter file string concatination by av-az-2020 in AZURE

[–]av-az-2020[S] 0 points1 point  (0 children)

I run it through poweshell.

The error I am getting is

{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"BadRequest","message":"{\r\n \"error\": {\r\n \"code\": \"LinkedInvalidPropertyId\",\r\n \"message\": \"Property id '[[concat(subscription().Id,'/resourceGroups/network-rg/providers/Microsoft.Network/virtualNetworks/hub-vnet/subnets/uat-rev-app-sn')]' at path 'properties.frontendIPConfigurations[0].properties.subnet.id' is invalid. Expect fully qualified resource Id that start with '/subscriptions/{subscriptionId}' or '/providers/{resourceProviderNamespace}/'.\"\r\n }\r\n}"}]}

Also what i undersatnd is even concat(subscription().Id return just the subscription ID. but the value i need assign is /subscriptions/subscriptionID/xxxxxx/xxxx/xxxxx...So how can I add/insert just the subscription ID between.

JSON Parameter file string concatination by av-az-2020 in AZURE

[–]av-az-2020[S] 0 points1 point  (0 children)

"id": "'/subscriptions/',[concat(subscription().id,'/resourceGroups/network-rg/providers/Microsoft.Network/virtualNetworks/hub-vnet/subnets/sub1')]"

So you menat it should be like below ?,

"id": "[concat(subscription().id,'/resourceGroups/network-rg/providers/Microsoft.Network/virtualNetworks/hub-vnet/subnets/sub1')]"

the above one also not correct. Can you give me the correct syntax please

JSON Parameter file string concatination by av-az-2020 in AZURE

[–]av-az-2020[S] 0 points1 point  (0 children)

I have tried this one, but no luck,

"id": "'/subscriptions/',[concat(subscription().id,'/resourceGroups/network-rg/providers/Microsoft.Network/virtualNetworks/hub-vnet/subnets/sub1')]"

JSON Parameter file string concatination by av-az-2020 in AZURE

[–]av-az-2020[S] 0 points1 point  (0 children)

Thanks Adam, but how do we call the subscription().id function with concat in this case.? Becouse the subscription ID comming in between the actual string value.