-
- {
- updateFormData('creationType', option.key);
- }}
- />
-
-
- {formData.creationType === 'create' && (
-
+
+ disabled={allTenants.length === 1 || currentConfig?.tenantId}
+ errorMessage={loginErrorMsg}
+ label={formatMessage('Azure Directory')}
+ options={allTenants.map((t) => ({ key: t.tenantId, text: t.displayName }))}
+ selectedKey={formData.tenantId}
+ styles={{ root: { paddingBottom: '8px' } }}
+ onChange={(_e, o) => {
+ updateFormData('tenantId', o.key as string);
+ }}
+ onRenderLabel={onRenderLabel}
+ />
+
{
+ updateFormData('subscriptionId', o.key as string);
+ }}
+ onRenderLabel={onRenderLabel}
+ />
+ {
+ updateFormData('resourceGroup', choice.name);
+ setErrorResourceGroupName(choice.errorMessage);
+ }}
+ />
+
-
+ disabled={currentConfig?.hostname || currentConfig?.name}
+ errorMessage={errorHostName}
+ label={formatMessage('Resource name')}
+ placeholder={formatMessage('Name of your services')}
+ styles={{ root: { paddingBottom: '8px' } }}
+ value={formData.hostname}
+ onChange={newHostName}
+ onRenderLabel={onRenderLabel}
+ />
+